package com.szit.test.biz.impl;

import com.szit.test.biz.CategoryBiz;
import com.szit.test.dao.CategoryDao;
import com.szit.test.dao.impl.CategoryDaoImpl;
import com.szit.test.entity.Category;

import java.util.List;

/**
 * 籍贯业务逻辑层实现类
 *
 * @author 勇哥
 * @version 1.0 2025-05-20
 */
public class CategoryBizImpl implements CategoryBiz {
    CategoryDao pdao;

    public CategoryBizImpl(){
        pdao = new CategoryDaoImpl();
    }

    @Override
    public List<Category> list() {
        return pdao.getAllProvinces();
    }
}
